<html>
	<head>
		<title>Edit Email Template</title>
		<script src="./js/jquery-1.11.1.min.js"></script>
		<script src="./ckeditor/ckeditor.js"></script>
		<script src="./js/main.js"></script>
		<link rel="stylesheet" type="text/css" href="./css/main.css">
	</head>
	<body>
		<h1 id="title"><img id="logo" src="./images/arc_reactor.png" />Edit Email Template</h1>
		<div id="content_wrapper">
			<table>
			<form id="email_template_form" action="./process/processEditEmailTemplate.php" method="post">
				<tr><th>Type:</th><td><select id="email_type" class="custom_input" name="email_type">
					<option value="None">None</option>
					<?php
						if($handle = opendir('./data')){
							while (false !== ($entry = readdir($handle))) {
								if($entry != "." && $entry != ".."){
									echo "<option value=\"$entry\">$entry</option>";
								}
							}
						}else{
							echo "<script>alert(\"An error has occured.  Please contact your Administrator.\");</script>";
						}
					?>
				</select></td></tr>
				<tr><th>Emails:</th><td><select id="email" class="custom_input" name="email"></select></td></tr>
				<tr><th>Output:</th><td><textarea id="output" name="output"></textarea></td></tr>
			</table>
			<input type="submit" value="Submit"/>
			</form>
		</div>
	</body>
</html>
	